﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QD.Snapshot.Core.BLL
{
    public class WebSite
    {
        public static Dictionary<int, Model.WebSite> GetList(List<Model.Product> listId)
        {
            if (listId == null) return null;

            StringBuilder sb = new StringBuilder();
            foreach (var model in listId)
            {
                sb.AppendFormat(",{0}", model.userid);
            }
            if (sb.Length > 0)
                return GetList(sb.ToString().Substring(1));
            return null;
        }

        public static Dictionary<int, Model.WebSite> GetList(string ids)
        {
            return DAL.WebSite.GetList(ids);
        }
    }
}